package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2018-07-12
 */
@TableName("w_project_config")
public class ProjectConfig extends Model<ProjectConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 项目配置表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 项目名称
     */
	@TableField("project_name")
	private String projectName;
    /**
     * 数据库地址
     */
	@TableField("db_url")
	private String dbUrl;
    /**
     * 数据库登录名
     */
	@TableField("db_username")
	private String dbUsername;
    /**
     * 数据库密码
     */
	@TableField("db_password")
	private String dbPassword;
    /**
     * 数据库类型
     */
	@TableField("db_type")
	private String dbType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getDbUrl() {
		return dbUrl;
	}

	public void setDbUrl(String dbUrl) {
		this.dbUrl = dbUrl;
	}

	public String getDbUsername() {
		return dbUsername;
	}

	public void setDbUsername(String dbUsername) {
		this.dbUsername = dbUsername;
	}

	public String getDbPassword() {
		return dbPassword;
	}

	public void setDbPassword(String dbPassword) {
		this.dbPassword = dbPassword;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProjectConfig{" +
			"id=" + id +
			", projectName=" + projectName +
			", dbUrl=" + dbUrl +
			", dbUsername=" + dbUsername +
			", dbPassword=" + dbPassword +
			", dbType=" + dbType +
			"}";
	}
}
